﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using VVA.Data.Resource;

namespace VVA.Data.Entity
{
    public class Taxonomy
    {
        public Guid TaxonomyID { get; set; }

        [Required(ErrorMessageResourceName = "Required_ErrorMessage", ErrorMessageResourceType = typeof(MessageResource))]
        [Display(Name = "Taxonomy_TaxonomyName", ResourceType = typeof(EntityResource))]
        [StringLength(255, ErrorMessageResourceName = "StringLength_ErrorMessage", ErrorMessageResourceType = typeof(MessageResource))]
        public string TaxonomyName { get; set; }

        [StringLength(50, ErrorMessageResourceName = "StringLength_ErrorMessage", ErrorMessageResourceType = typeof(MessageResource))]
        public string Slug { get; set; }

        [Display(Name = "Taxonomy_ParentID", ResourceType = typeof(EntityResource))]        
        public Guid? ParentID { get; set; }

        [Display(Name = "Description", ResourceType = typeof(EntityResource))]
        [StringLength(500, ErrorMessageResourceName = "StringLength_ErrorMessage", ErrorMessageResourceType = typeof(MessageResource))]
        public string Description { get; set; }

        public string AppliedTable { get; set; }

        [Display(Name = "SortOrder", ResourceType = typeof(EntityResource))]
        public int SortOrder { get; set; }

        public string Culture { get; set; }
        
        [Display(Name = "Taxonomy_Avatar", ResourceType = typeof(EntityResource))]
        public string Avatar { get; set; }
    }
}
